﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Domain.SlaughterDomain
{
    /// <summary>
    /// 屠宰表
    /// </summary>
    public class Slaughter : BaseEntity
    {
        /// <summary>
        /// 屠宰ID
        /// </summary>
        [Key]
        public int SlaughterId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        public string? Batch { get; set; }

        /// <summary>
        /// 到厂均重
        /// </summary>
        public decimal AveWeight { get; set; }

        /// <summary>
        /// 到厂时间
        /// </summary>
        public DateTime ArriveDate { get; set; }

        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime SlaughterTime { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public int ShoppingId { get; set; }
    }
}
